<?php
// +----------------------------------------------------------------------
// | WoShiMaiJia Projcet 
// +----------------------------------------------------------------------
// | Copyright (c) 2010-2011 http://woshimaijia.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: xinqiyang <xinqiyang@gmail.com>
// +----------------------------------------------------------------------

/**
 * Ads Services
 * ad management
 * @author xinqiyang
 *
 */
class AdsService extends BaseService
{
	
	public static  function getsAd($module,$action)
	{
		return  self::gets('ad',"module='$module' and action='$action' and status=0");
	}
	
	public static  function addAd($arr)
	{
		return self::add('ad', $arr);
	}
	
	/**
	 * delete tags by array id or id
	 * @param $array mixed string/array
	 */
	public static function adDestory($array)
	{
		return self::destory('ad', $array);
	}
    
}